﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CrearEmpresa.aspx.cs" Inherits="IU.Admin.Tabs.CrearEmpresa" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>CrearEmpresa</title>
    
    <!-- Dependencies -->
    <script src="/Admin/js/jquery-1.10.2.min.js" type="text/javascript"></script> 
    <script src="/js/validations-methods.js" type="text/javascript"></script>
    <script src="/js/validations.js" type="text/javascript"></script>
    <script src="/js/ax.js" type="text/javascript"></script>
    
    <!-- jQuery UI -->
    <script type="text/javascript" src="/Admin/js/jquery-ui-1.10.3.min.js"></script>
    <link href="/Admin/css/ui-lightness/jquery-ui-1.10.3.min.css" rel="Stylesheet" />
    
    <!-- Bootstrap -->
    <link href="../bootstrap/css/bootstrap.min.css" rel="Stylesheet" />
    <script src="../bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    
    <!-- Scripts -->
    <script src="../js/crearempresa.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <h1>Crear empresa (4 pasos)</h1>
    <small>(*) Campo requerido.</small>
    
    <%-- Page 1 --%>
    <div class="container-fluid" data-page="1">
        <h2>1. Datos de empresa</h2>
        <div>
            <label>Raz&oacute;n Social *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxRazon" runat="server" data-valid="req" maxlength="60"></asp:TextBox>
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>CUIT *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxCuit" runat="server" data-valid="cuit" maxlength="11" type="number"></asp:TextBox>
                
    <input id="date1" type="text" data-type="date" />
                
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>E-Mail *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxMail" runat="server"  maxlength="100" data-valid="mail" type="email"></asp:TextBox>
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>Situaci&oacute;n I.V.A. *</label>
            <asp:HiddenField ID="HiddenSituacionIVA" runat="server" Value="1" />
            <select id="comboIVA" data-attach="HiddenSituacionIVA">
            </select>
        </div>
        <br />
        <a class="btn" data-page="2" data-validfields="all">Siguiente &rarr;</a>
    </div>
    
    <%-- Page 2 --%>
    <div class="container-fluid" data-page="2">
        <h2>2. Crear administrador</h2>
        <div>
            <label>Nombre de usuario *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxAdminName" runat="server" data-valid="req" maxlength="20"></asp:TextBox>
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>Contrase&ntilde;a *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxAdminPass" runat="server" data-valid="min" data-arg="8" maxlength="50"></asp:TextBox>
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>E-Mail *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxAdminMail" runat="server" data-valid="mail" maxlength="100" type="email"></asp:TextBox>
                <span class="help-inline fade"></span>
              </div>
            </div>
        </div>
        
        <br />
        <a class="btn" data-page="1">&larr; Anterior</a>
        <a class="btn" data-page="3" data-validfields="all">Siguiente &rarr;</a>
    </div>
    
    <%-- Page 3 --%>
    <div class="container-fluid" data-page="3">
        <h2>3. Agregar sucursal</h2>
        <div>
            <label>Nombre (o descripci&oacuten) *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxSucName" runat="server" data-valid="req" maxlength="100"></asp:TextBox>
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>¿Es casa central? *</label>
            <asp:CheckBox ID="CheckCasaCentral" Checked="true" runat="server" />
            
            <label>Provincia *</label>
            <asp:HiddenField ID="HiddenFieldProvincia" runat="server" Value="1" />
            <select id="comboProvincias" data-attach="HiddenFieldProvincia">
            </select>
            
            <label>Localidad *</label>
            <div class="control-group">
              <div class="controls">
                <asp:TextBox ID="TextBoxLocalidad" runat="server" data-valid="req" maxlength="100"></asp:TextBox>
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>Direcci&oacute;n</label>
            <asp:TextBox ID="TextBoxDir" runat="server" maxlength="30"></asp:TextBox>
            
            <label>Número</label>
            <div class="control-group">
              <div class="controls">
                <asp:HiddenField ID="HiddenFieldDirNumber" runat="server" />
                <input ID="inputDirNum" data-attach="HiddenFieldDirNumber" maxlength="10" type="number" />
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>Piso</label>
            <div class="control-group">
              <div class="controls">
                <asp:HiddenField ID="HiddenFieldDirPiso" runat="server" />
                <input ID="Number1" data-attach="HiddenFieldDirPiso" maxlength="10" type="number" />
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>C&oacute;digo Postal</label>
            <div class="control-group">
              <div class="controls">
                <asp:HiddenField ID="HiddenFieldCP" runat="server" />
                <input ID="Number2" data-attach="HiddenFieldCP" maxlength="10" type="number" />
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>Tel&eacute;fono</label>
            <asp:TextBox ID="TextBoxTel" runat="server" maxlength="30"></asp:TextBox>
            
            <label>FAX</label>
            <asp:TextBox ID="TextBoxFax" runat="server" maxlength="30"></asp:TextBox>
            
            <label>N&uacute;mero de Facturaci&oacute;n *</label>
            <div class="control-group">
              <div class="controls">
                <asp:HiddenField ID="HiddenFieldFacturacion" runat="server" />
                <input ID="Number3" data-attach="HiddenFieldFacturacion" data-valid="req" maxlength="10" type="number" />
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            
        </div>
        
        <br />
        <a class="btn" data-page="2">&larr; Anterior</a>
        <a class="btn" data-page="4" data-validfields="all">Siguiente &rarr;</a>
    </div>
    
    <%-- Page 4 --%>
    <div class="container-fluid" data-page="4">
        <h2>4. Definir un Per&iacute;odo</h2>
        <div>
            <label>Fecha de Inicio *</label>
            <div class="control-group">
              <div class="controls">
                <asp:HiddenField ID="HiddenFieldDateStart" runat="server" />
                <input ID="dateStart" data-attach="HiddenFieldDateStart" data-valid="req" type="date" />
                <span class="help-inline fade"></span>
              </div>
            </div>
            
            <label>Fecha de Fin *</label>
            <div class="control-group">
              <div class="controls">
                <asp:HiddenField ID="HiddenFieldDateEnd" runat="server" />
                <input ID="dateEnd" data-attach="HiddenFieldDateEnd" data-valid="req" type="date" />
                <span class="help-inline fade"></span>
              </div>
            </div>
        </div>
        
        <br />
        <a class="btn" data-page="3">&larr; Anterior</a>
        <a class="btn" data-page="5" data-validfields="all">Siguiente &rarr;</a>
    </div>
    
    <%-- Fin --%>
    <div class="container-fluid" data-page="5">
        <h2>Finalizar</h2>
        <div>
            <p>Por favor, haga click en procesar para realizar las correspondientes altas.</p>
        </div>
        
        <br />
        <a class="btn" data-page="4">&larr; Anterior</a>
        <asp:LinkButton ID="LinkProcess" runat="server" CssClass="btn btn-success" OnClick="Process_OnClick" data-page="6">Procesar</asp:LinkButton>
    </div>
    
    <div class="container-fluid" data-page="6">
        <img alt='' src="../img/ajax-loader.gif" /><span>Procesando...</span>
    </div>
    
    </form>
</body>
</html>
